%%%-------------------------------------------------------------------
%%% File    : mr.hrl
%%% Author  :  <vjache>
%%% Description : 
%%%
%%% Created : 13 Jan 2009 by  <vjache>
%%%-------------------------------------------------------------------

%%%-------------------------------------------------------------------
%%% Record	: #red_task_descr
%%% Description: The descriptor of a map task.
%%%				 red_fun - fun(Key,[{MapId_i,Val_i}])->Item
%%%-------------------------------------------------------------------
-record(red_task_descr,{id,red_fun,map_tasks}).
%%%-------------------------------------------------------------------
%%% Record	: #map_task_descr
%%% Description: The descriptor of a map task.
%%%				 map_fun - fun(Item)-[{Key,Value}]
%%% 			
%%%-------------------------------------------------------------------
-record(map_task_descr,{
                        id=make_ref(),
                        affinity=undefined,
                        map_fun,
                        source=reducer
                       }).

-define(MSG_MAP2RED(Pid,MapId,Items), {Pid,MapId,Items}).
-define(PATH, get(path)).
-define(PUTPATH(Path), put(path,Path)).



